package com.cans.lightning.business.core.service;

import org.beetl.sql.core.IDAutoGen;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author cans
 * @date 2023/11/25
 **/
@Component("uuidAutoGen")
public class UUIDAutoGen implements IDAutoGen<String> {

    @Override
    public String nextID(String params) {
        return nextID();
    }

    public String nextID() {
        return UUID.randomUUID().toString().replace("-","");
    }
}
